//
//  WSPlayViewController.h
//  GroupFourFM
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 GroupFour. All rights reserved.
//

#import "WSBaseViewController.h"
#import <STKAudioPlayer.h>
#import "WSTabBarController.h"

@protocol WSPlayViewControllerDelegate <NSObject>

- (void)changePageData:(NSInteger)id title:(NSString *)title;

- (void)pushNextViewC:(NSInteger)uid title:(NSString *)title;

@end

@interface WSPlayViewController : WSBaseViewController

@property (nonatomic, assign) id<WSPlayViewControllerDelegate> delegate;

//播放的音乐数组
@property (nonatomic, strong) NSMutableArray *allMusicArray;

@property (nonatomic, assign) NSInteger index;

@property (nonatomic, assign) NSInteger song_id;//传过来的音频id
@property (nonatomic, assign) NSInteger indexRow;//记录上一页点击cell的下标

//播放器
@property (nonatomic, strong) STKAudioPlayer *player;

@property (nonatomic, strong) WSTabBarController *tabbar;

+(instancetype)sharaMusicPlayer;

@end
